/**
 *  会员模块接口
 * **/

import request from '@/common/request.js'
import {HTTP_REQUEST_URL} from '@/config.js'

const user_api={}

user_api.potindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pot/index',   
	data: data, 
}) 

user_api.areaedit = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/area/edit',   
	data: data, 
}) 

user_api.areadelete = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/area/delete',   
	data: data, 
}) 

user_api.areaadd = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/area/add',   
	data: data, 
}) 

user_api.gardenedit = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/garden/edit',   
	data: data, 
})

user_api.gardendelete = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/garden/delete',   
	data: data, 
}) 

user_api.gardenadd = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/garden/add',   
	data: data, 
}) 

user_api.plantingindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/planting/index',   
	data: data, 
}) 

user_api.areaindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/area/index',   
	data: data, 
}) 

user_api.gardenindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/garden/index',   
	data: data, 
}) 

user_api.usertoken = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/token.do',   
	data: data, 
}) 

user_api.fkinfolist = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkinfo/list.do',   
	data: data, 
}) 

user_api.fkinfoinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkinfo/info.do',   
	data: data, 
}) 

user_api.basicmonitorlist = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/basicmonitor/list.do',   
	data: data, 
}) 

user_api.basicmonitorinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/basicmonitor/info.do',   
	data: data, 
}) 

user_api.repositoryplantcultivar = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/repositoryplant/cultivar.html',   
	data: data, 
}) 

user_api.userregister = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/register',   
	data: data, 
}) 

user_api.userprofile = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/profile',   
	data: data, 
}) 

user_api.servicetypes = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/service/types',   
	data: data, 
}) 

user_api.serviceapply = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/service/apply',   
	data: data, 
}) 

user_api.croptypes = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/crop/types',   
	data: data, 
}) 

user_api.squaretypes = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/square/types',   
	data: data, 
}) 

user_api.weathertypes = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/weather/types',   
	data: data, 
}) 

user_api.reposindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/repos/index',   
	data: data, 
}) 

user_api.reposdetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/repos/detail',   
	data: data, 
})

user_api.repostypes = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/repos/types',   
	data: data, 
})

user_api.askissue = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/ask/issue',   
	data: data, 
})

user_api.askstat = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/ask/stat',   
	data: data, 
})

user_api.askindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/ask/index',   
	data: data, 
})

user_api.askdetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/ask/detail',   
	data: data, 
})

user_api.answerindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/answer/index',   
	data: data, 
})

user_api.answerdetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/answer/detail',   
	data: data, 
})

user_api.answerissue = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/answer/issue',   
	data: data, 
})

user_api.commentindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/comment/index',   
	data: data, 
})

user_api.commentissue = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/comment/issue',   
	data: data, 
})

user_api.getFocusCrops = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/getFocusCrops',   
	data: data, 
})

user_api.usersetFocusCrops = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/user/setFocusCrops',   
	data: data, 
})

user_api.serviceindex = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/service/index',   
	data: data, 
})




export default user_api






